package com.zhanghe.study.springboot.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zh
 * @date 2021/2/27 20:34
 */
@Component
@ConfigurationProperties(prefix = "custom")
public class CustomConfig {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
